var x = {
	"fields" : [ "hotel_id", "hotel_id" ],
	"objectCode" : "hotel",
	"objectField" : "id",
	"objects" : [ "hotel_bed", "hotel_stock" ]
}

// var y = {"fields" : [ "hotel_id", "hotel_id", "hotel_id" ],"objectCode" :
// "hotel","objectField" : "id","objects" : [ "orders", "hotel_bed",
// "hotel_stock" ]}



function(value, row, index, field){
	if (value) {        
		return '<img src="/upimg/' + value + '">'; 
	} 
	return value;
}